<html xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd" >
    <head>  
        <title>${page.title}</title>
		<link rel="stylesheet" type="text/css" href="css/reset-fonts.css" />
		<link rel="stylesheet" type="text/css" href="css/grid.css" />
	    <link rel="stylesheet" type="text/css" href="css/style.css" />
    </head>
    <body>
    	<div id="header">
    		<div class="container_12">
		        <h1 class="grid_12">${appspec.title}</h1>
		        <div class="clear" />
		        
				<ul id="site-navigation" class="grid_8">
					#foreach ($linkSet in $appspec.globalLinkSets)
						#foreach ($link in $linkSet.links)
						<li>
							#if ($link.internal)
								<a href="${link.page.id}">$link.page.title</a>
							#else
								<a href="${link.href}">$link.title</a>
							#end ## $link.internal
						</li>
						#end ## $link
					#end ## $linkSet
				</ul>
	        </div>
	    </div>

		<div class="container_12">
			<div class="grid_12">
				<h2>${page.title}</h2>
				<p>${page.description}</p>

				<div id="page-navigation" class="grid_2 alpha">
					<ul>
						#foreach ($link in $page.links)
							<li>
								#if ($link.internal)
									<a href="${link.page.id}">$link.page.title</a>
								#else
									<a href="${link.href}">$link.title</a>
								#end ## $link.internal
							</li>
						#end
					</ul>
				</div>

				<div id="page-content" class="grid_10 omega">
					#foreach ($content in $page.simpleContent)        
				        <div wicket:id="$content.id">${content.text}</div>
					#end
				</div>
				
			</div>

			<div id="footer" class="grid_12">
				<p>Generated by Clickframes</p>
			</div>
		</div>
    </body>
</html>